package com.ruoyi.system.template.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同模板对象 pb1_contract_template
 *
 * @author ruoyi
 * @date 2025-04-26
 */
public class Pb1ContractTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long templateId;

    /** 模板名称 */
    @Excel(name = "模板名称", readConverterExp = "$column.readConverterExp()")
    private String templateName;

    /** 模板类型 */
    @Excel(name = "模板类型", readConverterExp = "$column.readConverterExp()")
    private String templateType;

    /** 模板文件URL */
    @Excel(name = "模板文件URL", readConverterExp = "$column.readConverterExp()")
    private String templateUrl;

    /** 模板描述 */
    @Excel(name = "模板描述", readConverterExp = "$column.readConverterExp()")
    private String description;

    /** 适用货主（可多个，逗号分隔） */
    @Excel(name = "适用货主", readConverterExp = "$column.readConverterExp()")
    private String applicablePort;

    /** 适用货物类型（可多个，逗号分隔） */
    @Excel(name = "适用货物类型", readConverterExp = "$column.readConverterExp()")
    private String applicableCargo;

    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }

    public void setTemplateName(String templateName)
    {
        this.templateName = templateName;
    }

    public String getTemplateName()
    {
        return templateName;
    }

    public void setTemplateType(String templateType)
    {
        this.templateType = templateType;
    }

    public String getTemplateType()
    {
        return templateType;
    }

    public void setTemplateUrl(String templateUrl)
    {
        this.templateUrl = templateUrl;
    }

    public String getTemplateUrl()
    {
        return templateUrl;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public void setApplicablePort(String applicablePort)
    {
        this.applicablePort = applicablePort;
    }

    public String getApplicablePort()
    {
        return applicablePort;
    }

    public void setApplicableCargo(String applicableCargo)
    {
        this.applicableCargo = applicableCargo;
    }

    public String getApplicableCargo()
    {
        return applicableCargo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("templateId", getTemplateId())
                .append("templateName", getTemplateName())
                .append("templateType", getTemplateType())
                .append("templateUrl", getTemplateUrl())
                .append("description", getDescription())
                .append("applicablePort", getApplicablePort())
                .append("applicableCargo", getApplicableCargo())
                .toString();
    }
}
